package gorm

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mysql"
)

func GetDB() *gorm.DB {
	dsn := "root:453924241@(localhost:3306)/test?charset=utf8mb4"
	db, err := gorm.Open("mysql", dsn)

	if err != nil {
		panic(err)
	}
	return db
}
